package com.sywb.chuangyebao.lifecycle;

import android.app.Application;

import org.bining.footstone.log.Logger;
import org.bining.footstone.mvp.AppDelegate;

public class AppLifecycleCallbackImpl implements AppDelegate.Lifecycle {

    @Override
    public void onCreate(Application application) {
        Logger.i(application + " onCreate");

        //leakCanary内存泄露检查
        // ((IApp) application).getAppComponent().extras().put(RefWatcher.class.getName(), BuildConfig.USE_CANARY ? LeakCanary.install(application) : RefWatcher.DISABLED);
    }

    @Override
    public void onTerminate(Application application) {
        Logger.i(application + " onTerminate");
    }
}
